<template>
	<view class="content">
		<view class="top-nav">
			<view class="top-nav-boxs" :class="[choice == 1 ? 'top-nav-boxs-active' : '']" @tap="choiceGo(1)">全部<view v-if="choice == 1"></view>
			</view>
			<view class="top-nav-boxs" :class="[choice == 2 ? 'top-nav-boxs-active' : '']" @tap="choiceGo(2)">已到账<view v-if="choice == 2"></view>
			</view>
			<view class="top-nav-boxs" :class="[choice == 3 ? 'top-nav-boxs-active' : '']" @tap="choiceGo(3)">未到账<view v-if="choice == 3"></view>
			</view>
			<view class="top-nav-boxs" :class="[choice == 4 ? 'top-nav-boxs-active' : '']" @tap="choiceGo(4)">支出<view v-if="choice == 4"></view>
			</view>
		</view>

		<view class="item-list">
			<view class="item">
				<view class="item-top">
					<view class="item-top-text">购物送U点</view>
					<view class="item-top-num">
						<image src="http://hgry.oss-cn-hangzhou.aliyuncs.com/imgs/imgs/xiaojinbi%402x.png"></image>
						￥50
					</view>
				</view>
				<view class="item-bottom">
					<view class="item-bottom-text">订单编号后4位：(3456)</view>
					<view class="item-bottom-time">2019-07-12 12:23:32</view>
				</view>
			</view>
			
			<view class="item">
				<view class="item-top">
					<view class="item-top-text">好友注册</view>
					<view class="item-top-num">
						<image src="http://hgry.oss-cn-hangzhou.aliyuncs.com/imgs/imgs/xiaojinbi%402x.png"></image>
						+50
					</view>
				</view>
				<view class="item-bottom">
					<view class="item-bottom-text">18806533756</view>
					<view class="item-bottom-time">2019-07-12 12:23:32</view>
				</view>
			</view>
			
			<view class="item">
				<view class="item-top">
					<view class="item-top-text">注册送u点</view>
					<view class="item-top-num">
						<image src="http://hgry.oss-cn-hangzhou.aliyuncs.com/imgs/imgs/xiaojinbi%402x.png"></image>
						+50
					</view>
				</view>
				<view class="item-bottom">
					<view class="item-bottom-text">注册</view>
					<view class="item-bottom-time">2019-07-12 12:23:32</view>
				</view>
			</view>
			
			<view class="item">
				<view class="item-top">
					<view class="item-top-text">好友消费</view>
					<view class="item-top-num">
						<image src="http://hgry.oss-cn-hangzhou.aliyuncs.com/imgs/imgs/xiaojinbi%402x.png"></image>
						-55
					</view>
				</view>
				<view class="item-bottom">
					<view class="item-bottom-text">订单编号后4位：(3456)</view>
					<view class="item-bottom-time">2019-07-12 12:23:32</view>
				</view>
			</view>
		</view>
		
		<view class="info-over">
			<view class="line-l"></view>
			<view class="info-text">没有更多了</view>
			<view class="line-r"></view>
		</view>
	</view>
</template>

<script>
	export default {
		components: {},
		data() {
			return {
				choice: 1

			}
		},
		onLoad() {

		},
		methods: {
			choiceGo(index) {
				this.choice = index
			}
		}
	}
</script>

<style>
	page {
		background: rgba(245, 245, 245, 1);
	}

	.content {
		width: 100%;
		height: 100%;
	}

	.top-nav {
		width: 100%;
		height: 43.5px;
		display: flex;
		flex-wrap: wrap;
		background: rgba(255, 255, 255, 1);
		border-bottom: 1px solid #EEEEEE;
	}

	.top-nav-boxs {
		width: 25%;
		height: 43.5px;
		line-height: 43.5px;
		text-align: center;
		font-size: 16px;
		font-family: PingFangSC-Regular, PingFangSC;
		font-weight: 400;
		color: rgba(51, 51, 51, 1);
		line-height: 45px;
		position: relative;
	}

	.top-nav-boxs-active {
		font-weight: 500;
		color: rgba(254, 67, 56, 1);
	}

	.top-nav-boxs view {
		position: absolute;
		left: 10px;
		right: 10px;
		height: 1px;
		background: rgba(254, 67, 56, 1);
		bottom: 0;
	}

	.item-list {
		width: 100%;
		height: 100%;
		background: rgba(255, 255, 255, 1);
	}

	.item {
		margin-left: 15px;
		height: 60px;
		border-bottom: 1px solid #E5E5E5;
		position: relative;
	}

	.item-top {
		width: 100%;
		height: 14px;
		padding-top: 16.5px;
		display: flex;
		flex-wrap: wrap;
	}

	.item-top-text {
		height: 14px;
		font-size: 14px;
		font-family: PingFangSC-Regular, PingFangSC;
		font-weight: 400;
		color: rgba(51, 51, 51, 1);
		line-height: 14px;
	}

	.item-top-num image {
		width: 18px;
		height: 18px;
		margin-top: -2px;
		position: absolute;
		right: 50px;
	}

	.item-top-num {
		right: 15px;
		position: absolute;
		font-size: 16px;
		font-family: PingFangSC-Medium, PingFangSC;
		font-weight: 500;
		color: rgba(252, 90, 92, 1);
		height: 14px;
		line-height: 14px;
		display: flex;
	}

	.item-bottom {
		height: 12px;
		width: 100%;
		display: flex;
		margin-top: 8px;
	}

	.item-bottom-text {
		height: 12px;
		line-height: 12px;
		font-size: 11px;
		font-family: PingFangSC-Regular, PingFangSC;
		font-weight: 400;
		color: rgba(153, 153, 153, 1);
	}

	.item-bottom-time {
		height: 12px;
		line-height: 12px;
		position: absolute;
		right: 15px;
		font-size: 11px;
		font-family: PingFangSC-Regular, PingFangSC;
		font-weight: 400;
		color: rgba(153, 153, 153, 1);
	}
	
	.info-over {
		height: 50px;
		display: flex;
		justify-content: center;
		align-items: center;
		flex-wrap: wrap;
	}
	
	.line-l {
		width: 83px;
		height: 1px;
		background: rgba(204, 204, 204, 1);
		border-radius: 50%;
	}
	
	.line-r {
		width: 83px;
		height: 1px;
		background: rgba(204, 204, 204, 1);
		border-radius: 50%;
	}
	
	.info-text {
		margin: 0 9px 0 11px;
		font-size: 11px;
		font-family: PingFang SC;
		font-weight: bold;
		color: rgba(204, 204, 204, 1);
		line-height: 49px;
	}
</style>
